package com.caigou.controller.front;

import com.caigou.bean.param.FrontChannelDataPram;
import com.caigou.service.ChannelService;
import com.caigou.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/front")
public class FrontChannelDataController {
    @Resource
    private ChannelService channelService;

    @ApiOperation("获取各个频道热搜榜数据")
    @PostMapping("/channel/loadChannelHotSearchData")
    public Result loadChannelHotSearchData(@RequestBody FrontChannelDataPram pram){
        return channelService.loadChannelHotSearchData(pram);
    }
}
